package com.wangshb.upms.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wangshb.upms.core.tree.TreeNode;
import com.wangshb.upms.entity.UpmsUserRole;

import java.util.List;

public interface UpmsUserRoleService extends IService<UpmsUserRole> {


    /**
     * 分配角色
     * @param userId
     * @param roleIdList
     */
    void allocateRoles(Long userId, List<Long> roleIdList);


    /**
     * 根据用户获取角色
     * @param userId
     * @return
     */
    List<Long> listRoleByUserId(Long userId);
}
